home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / basic / vbcomm20.zip / VBCOMM.TXT < prev    next >
Text File  |  1992-08-22  |  3KB  |  71 lines

  1.  
  2.      Communications Control for Visual Basic by Mark Gamber   August 1992
  3.                                   Version 2.0
  4.  
  5.    VBCOMM provides a communcations module for Visual Basic. TO begin using the
  6. control, copy VBCOMM.VBX to your Visual Basic directory and select the
  7. "File_AddFile" menu item to display a litbox of files. Select VBCOMM.VBX to add
  8. the file to the toolbox.
  9.  
  10.    VBCOMM only uses Windows communications calls and is thus subject to
  11. policing of ports by Windows. In any given Windows session, anything can and
  12. usually go wrong with communications, so no guarentees are implied. That out of
  13. the way...
  14.  
  15.    First step in using VBCOMM is to set up the port by setting property values.
  16. Once a port is open, the properties should not be altered until the port is
  17. closed again. You may initialize the port by setting the following properties:
  18.  
  19.    Comport: Select from the following values:
  20.          0 - COM1:
  21.          1 - COM2:
  22.          2 - COM3:
  23.          3 - COM4:
  24.  
  25.    Baud: Select from the following values:
  26.          0 - 300
  27.          1 - 1200
  28.          2 - 2400
  29.          3 - 9600
  30.          4 = 19200
  31.  
  32.    Parity: Select from the following values:
  33.          0 - Parity off
  34.          1 - Parity even
  35.          2 - Parity odd
  36.  
  37.    Data: Select from the following values:
  38.          0 - 6 bits
  39.          1 - 7 bits
  40.          2 - 8 bits
  41.  
  42.    Stop: Select from the following values:
  43.          0 - 1 bits
  44.          1 - 2 bits
  45.  
  46. To open the port, set the "Enable" property to a non-zero number. The number
  47. should remain non-zero until the port is closed by setting "Enable" to zero.
  48. When the port is open, incoming characters will cause the "InQueue" routine to
  49. be executed. Within this routine you can use DataChr and DataStr to retrieve
  50. characters from the receiving queue.
  51.  
  52.    Enable: 0 to close port, non-zero to open port.
  53.  
  54.    DataChr: Sends and receives byte data values (0-255)
  55.  
  56.    DataStr: Sends and receives data strings.
  57.  
  58.  
  59.    The zipfile contains Visual Basic example code using the VBCOMM module. For
  60. more information on actual use, please look at the source code.
  61.    This software is public domain and may be freely distrbuted. As public
  62. domain, the software is not officially supported. In using the software, the
  63. user assumes responsibility for proper use of the software and the author is
  64. not liable. Period. If the user is unable to comply, the user should destroy
  65. the software immediately. The author may be reached on the following services:
  66.  
  67.    America Online E-Mail: PCA MarkG
  68.    Compuserve Mail:       76450,2754
  69.    Internet Mail:         pcamarkg@aol.com
  70.  
  71.